package com.xmut.eduservice.controller;


import com.xmut.commonutils.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;


@Api(tags = "用户登录")
@RestController
@RequestMapping("/eduservice/user")
@CrossOrigin//解决跨域问题
public class EduLoginController
{


    @PostMapping("login")
    public R login() {

        return R.ok().data("token", "admin");
    }
//137

    @GetMapping("info")
    public R info() {

        return R.ok().data("roles", "[admin]").data("name", "admin").data("avatar", "https://xmut-edu-file.oss-cn-beijing.aliyuncs.com/2020/07/31/088c1955-943f-45ef-9517-b11470bd1ff9file.png");
    }

}
